package string;
/**
 *  how to trim the blank of a String at the front and the end
 * */
public class TrimDemo {
    public static void main(String[] args) {
        String str="      515          ";
//        System.out.println(String.class.getName()+"@"+Integer.toHexString(System.identityHashCode(str)));
//        System.out.println(String.class.getName()+"@"+Integer.toHexString(System.identityHashCode(str=str.trim())));
//        System.out.println(String.class.getName()+"@"+Integer.toHexString(System.identityHashCode(str.trim())));

        System.out.println(str.trim());


    }
}
